using Godot;
using System;

public partial class ActionAim : BTLeaf
{
	// Called when the node enters the scene tree for the first time.
	public override void run()
    {
		Characters parentOfType = FindParentOfType<Characters>(this);
		_character = parentOfType;
		//await ToSignal(_character._timer, Timer.SignalName.Timeout);
        //GD.Print(_character.Name);
		//GD.Print("站立");
		_character.AimTarget();
		//GD.Print("角色位置：" , _character.GlobalPosition);
		//GD.Print("目标位置：" , _character.targetPos);
		//GD.Print("目标角色位置：" , targetCharacter.GlobalPosition);
		//_character._timer.Start(-1);
		//await ToSignal(_character._timer, Timer.SignalName.Timeout);
		EmitSignal(SignalName.completed,succeed());
    }
}
